home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / mmailp.idb / usr / lib / Zmail / sample.zmailrc.z / sample.zmailrc
Encoding:
Text File  |  1997-01-22  |  5.0 KB  |  119 lines

  1. # sample.zmailrc
  2. # By Bart Schaefer and Dan Heller
  3. #
  4. # Change zmail's temp file directory, to avoid quota collisions.
  5. # /usr/tmp so tmpfiles won't be rm'd before they can be recovered.
  6. set tmpdir=/usr/tmp
  7.  
  8. # Set the folder and mbox locations; the + expands to value of "folder".
  9. set folder=$HOME/Mail mbox=+mbox
  10.  
  11. # Set up the display early to allow quick exit in headers-only mode.
  12. # The hdrs_only flag is true if the command line was: "zmail -H".
  13. # The variable hdr_format is set to change the format of the header
  14. # summaries that are displayed.
  15. if hdrs_only
  16.     set hdr_format='%28a %M %-2N  %.33s'
  17.     exit    # Quits reading this file
  18. else
  19.     set hdr_format='%28a %M %-2N (%3.5l li) %.25s'
  20. endif
  21.  
  22. # Set the prompt to show current time, name of the current folder,
  23. # current message number, and count of total messages.  (Command-line only)
  24. set prompt="(%T) %f: #%m of %t> "
  25.  
  26. # These variables are helpful for new users:
  27. #    ask        -- always prompt for Subject: of mail
  28. #    ignoreeof    -- ignore end-of-file from keyboard
  29. #    verify        -- query that all is well before sending mail
  30. #    warning        -- report miscellaneous possible problems
  31. set ask verify warning
  32. set ignoreeof="echo 'Use "'"'quit'"'" to quit.'"
  33.  
  34. # By default, zmail's history is set to the last command only.  Set it to
  35. # remember the last 100 commands.  (Command-line mode only.)
  36. set history = 100
  37.  
  38. # If the variable "unix" is set, then any command that isn't a zmail command
  39. # will execute the command as if you typed it from the shell.  Note, such
  40. # commands will not go through another shell -- this is it.
  41. set unix
  42.  
  43. # Source the contents of .mailrc as well in case there are
  44. # Mail aliases that are set there.
  45. source $HOME/.mailrc
  46.  
  47. # Use a real pager for character mode only. (Not all systems have "less".)
  48. set pager=less
  49.  
  50. # When typing in a letter, it is sometimes convenient to have lines wrap
  51. # automatically similar to editors like vi and emacs.  In this example, if
  52. # the user types past column 74, a newline will automatically be inserted.
  53. set wrapcolumn=74
  54.  
  55. # If "autosign" is set, then a file can be read in automatically whenever
  56. # mail is sent.  This file is normally your "signature," that is, your
  57. # name and other information you want included in every message.
  58. if -e ~/.signature
  59.     set autosign = ~/.signature
  60. endif
  61.  
  62. # When you use the -i option to reply, or use the ~i tilde escape in a letter
  63. # when in compose mode, the current message will be included in your text.
  64. # Put a nice wrapper around those included messages.  Here, show the author's
  65. # name and the subject of his letter, label the end, and add a trailing blank
  66. # to separate each inclusion and make finding the end easier.
  67. set pre_indent_str='On %M %N, %T, %.50n wrote:\n} Subject: %.65s'
  68. set indent_str='} '    # actual message text is preceded by a "}"
  69. set post_indent_str='}-- End of excerpt from %.50n\n'
  70.  
  71. # Label replies with a header showing the who, what, and when of the
  72. # message being replied-to.
  73. set in_reply_to='%f\n\t"%s" (%d)'
  74.  
  75. # Mail routing and address-fixing conveniences.  If auto_route is set, then
  76. # replies to messages take a closer look at the addresses of the recipients.
  77. # If any redundant paths are present, they are pruned.  Also, the path that
  78. # precedes any hosts listed in the "known_hosts" list is truncated.  This is
  79. # useful for uucp sites only, and is therefore commented out in this sample.
  80. # set auto_route known_hosts="sun ucbcad well unicom"
  81.  
  82. # The "alts" command specifies alternate addresses that I have.  Here,
  83. # "*" expands to any "path" whose recipient ends with the user's current
  84. # login name.  If another login name is desired, the login and/or path
  85. # to that login must be preceded by a !.  Otherwise, standard paths are used.
  86. alts "*"
  87.  
  88. # The "map" command can rebind certain key sequences in tty-mode only.
  89. # Here, if the user types two R's in a row at the prompt, then the string
  90. # "reply -ei " will be echoed as if the user typed it.
  91. # map RR "reply -ei "
  92. # "rr" will do a reply and do the newline for you so you don't have to.
  93. # map rr "reply\n"
  94.  
  95. # The "map!" command is similar to "map" in that you can do keyboard
  96. # acceleration, but map! occurs during letter composition mode only.
  97. map! '\CT' '    '    # ^T generates 4 spaces in composition mode.
  98. # Here, hitting * twice will append a pre-signature.
  99. # map! ** "\n            Later,\n"
  100.  
  101. # Be careful with map and map! -- you can cause an infinite loop.
  102. # Your interrupt key (usually ^C) will stop such loops.
  103.  
  104. # "cmd" is used to set command line aliases similar to the way "csh"
  105. # does it.  The only difference is that "alias" is a reserved word in
  106. # Z-Mail and Mail, so cmd is used.
  107. #
  108. cmd dq 'd \!*; q'        # Delete a message list, then quit.
  109. cmd unread 'flags \!* U O'    # Mark messages unread.
  110.  
  111. # Find messages from mailer-daemon (ignore upper/lower case).
  112. cmd md 'pick -i -f mailer-daemon'
  113. # Because zmail can pipe commands to one another, including "cmd"'s, this
  114. # example will delete all messages from mailer-daemon
  115. cmd dmd 'md | delete'
  116.  
  117. # aliases -- just like Mail's aliases, but you can specify "names"
  118. alias z-help Z-Mail Technical Support <support@z-code.com>
  119.